# Contributor: Cosmo Borsky <me@cosmoborsky.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=bemenu
pkgver=0.6.23
pkgrel=0
pkgdesc="Dynamic menu library and client program with support for different backends"
options="!check" # No testsuite
url="https://github.com/Cloudef/bemenu"
arch="all"
license="GPL-3.0-or-later AND LGPL-3.0-or-later"
depends_dev="
	libxinerama-dev
	libxkbcommon-dev
	ncurses-dev
	pango-dev
	scdoc
	wayland-dev
	wayland-protocols
	"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="$pkgname-$pkgver.tar.gz::https://github.com/Cloudef/bemenu/archive/$pkgver.tar.gz"
replaces="sxmo-bemenu"

build() {
	PREFIX=/usr CFLAGS="$CFLAGS -g" make
}

package() {
	# Please don't split backends into subpackages until
	# https://github.com/Cloudef/bemenu/issues/165 is
	# resolved, i.e. proper error messages are output if
	# no backend was found or a backend error occured.

	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
3b10547bb41c4b930e32b4ab4f1553486d30fb1c49e3afe2b952482f9f14e56d3708f2b474f6ce3e37c61475ba0e455e5c0ee68bc4ef247ec90922fd2a170d9d  bemenu-0.6.23.tar.gz
"
